#include <stdio.h>

int main(int argc, char const *argv[])
{
    /* 题目：输入某年某月某日，判断这一天是这一年的第几天？ */
    int sum;
    int year, month, day;
    printf("\n请输入年、月、日，格式为：年,月,日（2015,12,10）\n");
    scanf("%d,%d,%d", &year, &month, &day);
    printf("%d,%d,%d", year, month, day);
    switch (month)
    {
    case 1:
        sum = 0;
        break;
    case 2:
        sum = 0;
        break;
    case 3:
        sum = 0;
        break;
    case 4:
        sum = 0;
        break;
    case 5:
        sum = 0;
        break;
    case 6:
        sum = 0;
        break;
    case 7:
        sum = 0;
        break;
    case 8:
        sum = 0;
        break;
    case 9:
        sum = 0;
        break;
    case 10:
        sum = 0;
        break;
    case 11:
        sum = 0;
        break;
    case 12:
        sum = 0;
        break;
    default:
        printf("Data error!");
        break;
    }
    int leap;
    if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0))
    { // 判断是不是闰年
        {
            printf("闰年");
            /* code */
        }

        return 0;
    }
